package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 添加订单明细数据
     * @param orderDetail
     */
    void insertSubmit(OrderDetail orderDetail);

    /**
     * 查询订单明细
     * @param id
     */
    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> getById(Long id);

}
